#ifndef __Bullet_H__
#define __Bullet_H__
#include "cocos2d.h"
#include "Prefabs.h"
USING_NS_CC;
class CBullet : public Node
{
public:
	CBullet();
	~CBullet();
	static CBullet* createWithDt(CBulletData* bulletDt, float radian, Vec2 pos, bool isPlayer);
	bool initWithDt(CBulletData* bulletDt, float radian, Vec2 pos, bool isPlayer);
	void move(float delta);
	virtual void update(float delta);
	CC_SYNTHESIZE_READONLY(Sprite*, m_pPic, Pic);
	CC_SYNTHESIZE_READONLY(Vec2, m_initDir, InitDir);
	CC_SYNTHESIZE_READONLY(Vec2, m_initPos, InitPos);
	CC_SYNTHESIZE_READONLY(int, m_nAtk, Atk);
	CC_SYNTHESIZE_READONLY(int, m_nSpeed, Speed);
	CC_SYNTHESIZE_READONLY(bool, m_IsPlayer, IsPlayer);
	CC_SYNTHESIZE_READONLY(int, m_nDestoryTime, DestoryTime);
	void initAnimation();
private:
	
};

#endif